package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.extension.UserExtensionData;
import com.yanqu.road.entity.extension.UserExtensionKeyEnum;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserExtensionBusiness {
    public static Map<UserExtensionKeyEnum, UserExtensionData> getUserExtensionDataMap(long userId) {
        return DaoHelper.getUserExtensionDaoImpl().getUserExtensionDataMap(userId);
    }

    public static boolean addUserExtensionData(UserExtensionData userExtensionData) {
        return DaoHelper.getUserExtensionDaoImpl().add(userExtensionData);
    }

    public static boolean updateUserExtensionData(UserExtensionData userExtensionData) {
        return DaoHelper.getUserExtensionDaoImpl().update(userExtensionData);
    }
}
